package com.kujie.access.utils;

/**
 * 数据转换工具类
 *
 * @author check
 * @date 2025-07-03
 */
public class ConvertUtil {

    public static String getCheckIf(int checkIf) {
        return checkIf == 0 ? "否" : "是";
    }

    public static String getGender(int gender) {
        return gender == 0 ? "男" : gender == 1 ? "女" : "未知";
    }

    public static int getCheckIf(String checkIf) {
        return "是".equals(checkIf) ? 1 : 0;
    }

    public static int getGender(String gender) {
        return "男".equals(gender) ? 0 : "女".equals(gender) ? 1 : 2;
    }
}
